package com.somlsis.fragment

import android.bluetooth.BluetoothGatt
import android.util.Log
import android.view.View
import com.base.BaseFragment
import com.clj.fastble.callback.BleGattCallback
import com.clj.fastble.data.BleDevice
import com.clj.fastble.exception.BleException
import com.orhanobut.logger.Logger
import com.somlsis.R
import com.somlsis.activity.AddDeviceActivity
import com.somlsis.databinding.FragmentBindingDeviceBinding
import kotlin.math.log

class BindingDeviceFragment(private val listener: AddDeviceActivity.OnAddDeviceNextClickListener) :
    BaseFragment<FragmentBindingDeviceBinding>() {
    override fun getViewBinding(): FragmentBindingDeviceBinding {
        return FragmentBindingDeviceBinding.inflate(layoutInflater)
    }

    override fun createView() {
        binding.accomplish.setOnClickListener {
            listener.onBindingDeviceCallBack()
        }
    }



    fun startBinding() {
        binding.bindingHint.text = getString(R.string.binding_hint)
        binding.bindingHint2.text = getString(R.string.binding_hint2)
    }

    fun bindingSuccess() {
        binding.bindingHint.text = getString(R.string.binding_successful)
        binding.bindingHint2.text = getString(R.string.binding_successful_hint)
        binding.accomplish.visibility = View.VISIBLE
    }
    override fun refreshUI() {
    }
}